#include <iostream>
using namespace std;
int main()
{
  int n, k = 0, i = 0;
  cout << "Vvedite chislo: " << endl;
  cin >> n;
  while(i < n)
  {
    k++;
    i += k;
  }
cout << "Summa: " << i << endl << "\nChislo: " << k << endl;

  return 0;
}
